
<p>
<a href="<?php echo $this->url('album', array('action'=>'add'));?>">Add new album</a>
</p>
<table class="table">
     <tr>
         <th>Title</th>
         <th>Artist</th>
         <th>&nbsp;</th>
     </tr>
     <?php foreach ($this->paginator as $album) : // <-- change here! ?>
         <tr>
             <td><?php echo $this->escapeHtml($album->title);?></td>
             <td><?php echo $this->escapeHtml($album->artist);?></td>
             <td>
                 <a href="<?php echo $this->url('album',
                     array('action' => 'edit', 'id' => $album->id));?>">Edit</a>
                 <a href="<?php echo $this->url('album',
                     array('action' => 'delete', 'id' => $album->id));?>">Delete</a>
             </td>
         </tr>
     <?php endforeach; ?>

<tr>
    <td>  <?php
        // add at the end of the file after the table
        echo $this->paginationControl(
            // the paginator object
            $this->paginator,
            // the scrolling style
            'Sliding',//Jumping,Elastic
            // the partial to use to render the control
            array('partial/paginator.phtml', 'Album'),
            // the route to link to when a user clicks a control link
            array(
                'route' => 'album'
            )
        );
 ?>
    </td>
</tr>
</table>